package com.ytc.teaching.api;


import com.ytc.commons.model.dto.CommentQueryDto;
import com.ytc.commons.model.vo.PageResponseResult;
import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.commons.model.vo.WorkVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("xc-teaching-service")
public interface TeachingClient {

    @GetMapping("/work/{workId}")
    public ResponseResult<WorkVo> findByWorkId(@PathVariable("workId") Long workId);
    //运营平台---删除评论
    @DeleteMapping("/course-comment/{commentId}")
    ResponseResult RemoveCommentId(@PathVariable("commentId") Long commentId);

    //运营平台---机构的评论列表
    @GetMapping("/course-comment/list-all")
    PageResponseResult listAll(@SpringQueryMap CommentQueryDto dto, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

}
